fix logOut method