Changed session loging to store only userid