added error message for isMax validator