Fixed bug in session login.