form validation fix