documentation for form validation