fixing bug: missing brackets when checking inviter identity