finished logout part