Fixes #66 login page flashes when logged in