attribute validation