Refacto attribute do validate method on set