only show the submit button if there are no errors