Why the user can submit the form without the required fields?