fix bug 1055565 - Don't show login on 404 page when the user is logged in
Merge pull request #2682 from darkwing/1055565-404-login

fix bug 1055565 - Don't show login on 404 page when the user is logged in