added error message for isRegex validator