added registration form validation
added registration form validation