added example for isDir validator