begin form validation