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

I think that a good way to use the "for" attribute on labels.
I used ( this.$element.attr( 'id' ) ) instead of ( typeof this.$element.attr( 'id' ) !== 'undefined' ) because second returned true if id="" (empty). It is not correctly.