Added check of auth token on API request