Added session tracking so users stay logged in.