check parameters before creating a new task