added as-you-type-validation