added validation rule for parameters