update for cgs login and logout