Unable to submit and form field validation