$(document).ready(function(){
var validEmail = false;
$(".personalsale").submit(function(event){
event.preventDefault();
var email = $("#email").val();
if (email == "") {
$("#email").parent().removeClass("errorInput").addClass("errorInput");
validEmail = false;
} else {
$("#email").parent().removeClass("errorInput").addClass("errorInput");
validEmail = true;
}
if(validEmail == true) {
$(".personalsale").unbind('submit').submit();
}
});
});