always check for error token in case of a failure