`.to_i` doesn't raise any exceptions, so I think just revert this to `self.attrs[:setpw] = num.to_i` and ignore my validator suggestion, sorry for the noise.