Reload the page if validation fails