Introduce generic form validation