Only show notifications when logged in.

fixes #943