Only show activities tab for logged-in users.

Fixes #270.