Fix callbacks and timing of the URL validation