Add a helper class for validations