Corrects logic to disable the self-registration behavior unless registration_enabled is true.