form validation
augmented for table