Make some validations configurable