How to prevent a form from submitting when a required field is empty using HTML5?