adds form validation to the section crud