added allow_registration check