Added user registration validations.