Added auto login when session is logged in