The proposed solution is correct but there is another scenario that is not captured. The same issue can be faced when you have fields in the model passed for validation in the rules but the same fields are not in the form being submitted.