form validation on reform