add model attribute validation