Modified JQuery to validate as the user types