added error message for isType validator