Fixed crash when web crawlers hit the login page.
Merge branch 'master' of https://github.com/leetncamp/portal