changed validation for user registration