change the way user is set in session