updated ca_registry error checking