configurable class validator