Added validation with JQuery validation plugin