add database validations for user model