minor warning fix
implement logout