added error messages for isDir validator