put hint and error spans in visuallyhidden legend element for screen readers