added some documentation for form validation