Decorator-based function parameter validation