+added registration form validation