Use validation utils to validate entity and scope.