check to see if authorize() succeded