mixin for validating command params and required properties