fixed form validation