Added validations to user registration