form validation bug solved