finish logout checklogin function without debug