To add :valid and :invalid selector for jQuery.is method.