Changes to CreateTeam API. No Document changes necessary

Due to some testing notice that I wasn't checking for loginId being set
and also error messages were not showing up right due to a if else block
being in wrong spot.
Revert "Changes to CreateTeam API. No Document changes necessary"

This reverts commit df34103afc6ea1696c21367bc141a1ca71d22642.
Changes to CreateTeam API. No Document changes necessary

As a result of testing, made some changes to create team. Error messages
now show up correct. Also checking for loginId not being set.