transform parameters before validation