Add validation for BadgeSet/Badge models, fixed #4.