fixed client validation example