Only show notifications when logged in.

fixes #943
Merge pull request #1254 from halfdan/943-login-notification

Only show notifications when logged in.