add error to return of Token