Is there a way to prevent the submission of a form if it is not properly filled in