validation for function params check