Added more code to createTeam, confirmTeam, and Login functions.