So, this is one that I'm not sure on. I'm guessing you want the user to be logged in after restoreSession since that's what it does... no?