directive validity array maxlength