updated validations in user model