added support for disabling registration