Add error logging for access token