Added "for" attribute for errorElem if it is the label.