Not able to submit form after clicking submit button