changed isAuthFailure to checkResponse