Why is the empty required fields showing up even when the form is properly filled?