added validations for user model