Added validation for transforms