nested array valdation issue