After an error, check that submit doesn't contain value="", because the browser won't display the default text label, "submit Query" or whatever.