Fix 500 errors.
Merge pull request #38 from apple314159/master

Fix a few "500" errors in the login template