- validate parameters (issue #5)