Added more validations to User.