added validation functionality for creating a remoteregistry