peof jqXHR.responseJSON.error != 'undefined') {
					$("#email-error span").html(jqXHR.responseJSON.error);
					$("#email-error").css('display', 'block');
				} else {
					$("#email-error").css('display', 'none');
				}
				console.log("Request failed: " + textStatus + ' and error is ' + JSON.stringify(jqXHR));
			});

			return false;
		});

		$("body").on("submit", "#ajax-login", function(e) {
			e.preventDefault();
			$.ajax({
				url: '/accounts/ajax_login',
				type: 'post',
				cache: false,
				dat