setup user sessions helper