test form validation