Adds HTML form validation.