param validation