debugging of createTeam and update profile functions