selectFirstInvalid and clearInvalidFields attributes