Use array in validation