Unable to submit form due to required fields not filled out?