call entity validate function