You should declare it with `before_validate`. 
It is not good to change value of attribute after validation.