fixed params validation