Rectify submit button not submitting