Simple utility to validate all properties of the object with reflection.