fix session start

moved around my session start because my headers were being sent before
I started my session