added validations in user model