add example
extract clientOnlyValidate