My form cannot be submitted if a required field is missed but is then filled in