added JQuery to validate the form