advanced param validation