test form validation and submission