Added a validation decorator