Added params validation