Refined resumptionToken validation