handle error due to wrong token