Logout, login bug fixed