add div in place of span for errors nodes