Fix bug: Login page being show even after login