clone the form so that errors aren't rendered twice