Added group invitation logic