added validations to user model