[bug 893031] Fixing Login on events page

* Also removed a bunch of dead/unused code from views/layout.html

:shipit: