added validate option to ztps