modified login session management