Loading validator with entity type and entity object.