Add explicit check for invite code envar