commit form validation