modified len validator to accept array objects