Use the supplied constraints object for validation by adding a scope validator