Only show link when logged in

As suggested by Betelgeuse (thanks!), script now only shows link if you
are currently logged in</li>