LogOut function works.