Check for error when getting access token