Changed logoutWithCompletion method