params validation