broke out page token validator and loader functions