Require login before accepting group invitations (Fixes #316)