fix for form validation