improved invite code error messaging