separate before_validation