Creates a layer of validation before the actual method are executed.