Adding in logic to handle HTML5 required form fields.