Do not allow switches with no name to be registered