function complete_privs() {
	$$('.input_login').each(function(element) {
		setInputSize(element);
	});

	if ($('form_login')) {
		$('form_login').addEvent('submit', function(e) {
			/**
			 * Prevent the submit event
			 */
			new Event(e).stop();
		 
			/**
			 * This empties the log and shows the spinning indicator
			 */
			//var log = $('log_res').empty().addClass('ajax-loading');
		 
			/**
			 * send takes care of encoding and returns the Ajax instance.
			 * onComplete removes the spinner from the log.
			 */
			this.send({
				update: 'div_privs',
				onComplete: function() { complete_privs(); } // in case the username and password are not correct
			/* ,
				onComplete: function() {
					log.removeClass('ajax-loading');
				}
			*/
			});
		});
	}
}
