Update group join function so group is created if no groups are available, and fix group join.