query user applied needs few changes
integrated query user part for invitedPlayer