Studing JQuery validation and methods