Generic Form validations using JQuery