t();
				$.ajax({
					url: '/accounts/ajax_login',
					type: 'post',
					cache: false,
					data: { 
						email: $("#login_box #login-email").val(), 
						password: $("#login_box #login-pass").val() 
					},
					beforeSend: function() {
						$("#signup-submit").css('display','none');
						$(".res-cont-sent").css('display','block');
					},
					success: function(response) {
						// redirecting only if the user login succeeded
						if (typeof response.email_error == 'undefined' && typeof response.p