Fix api request if user doesn't exist

Api request function tries to add the token to the request but it didn't
check to see if it existed first.