Add HTML5 input field validation.