small changes in form validation