Moved access token check