Wait for AJAX response before validation.