constraint added to custom registry type