input-validate works