session debugging
fix session issues and login