Add middleware method to create a group