better attribute validation
Merge pull request #669 from candlepin/ckozak/better_attr_validation

better attribute validation