fix log in session issue