fix typos on 500 error template
fixed nonexistent user 404 error on login, closes #274