$(document).ready(function() {
	// validate login form
	$("#forgotpassword").validate({
		rules: {
			email: {
				required: true,
				email: true
			}
		},
		errorPlacement: function(error, element) { 
            if(element.is("#email"))
            	error.insertBefore(element.parent().parent().next().find("#error"));
        }
	});
});
