I am still able to submit the form when the required fields are not filled in