Add validation to the User model.