validate presence of params