Some refactoring in validator, can now also just enter an entity class no property name