got work for validator for array