validate onReady