fixed error on reloading login page while logged out