Copied from country form.php