Make sure the page is loaded before checking for validation errors