Form not submitting after clicking on submit button