Big refacto on how to validate badge rule's + adding resource on badge rule's