Form is being submitted due to required fields