Added form submission changes code

Added changes for calling validations before submission of the form.