creating user model with validations