Renamed manage_open_login() to checkSession()