[Ayanga & Brandon] add logic for different user flows for joining team