validating params