added validation for cli parameters