validation on models atributes