Switching to HTML5 form validation for text fields.