Fix login button when browsing another user's profile

When you're not logged in and visiting a user's profile, the login button doesn't work.

__Old:__
![screen shot 2013-06-24 at 10 24 23](https://f.cloud.github.com/assets/1413267/694137/9fb99788-dca7-11e2-8401-76fdd45457ba.png)

__New:__
![screen shot 2013-06-24 at 10 24 35](https://f.cloud.github.com/assets/1413267/694139/a5ae9300-dca7-11e2-89b6-e0df909afc6b.png)