Complete logic for joining group