add missing badge type attributes to form