adding the option to validate on change