Refactor login command
Refactor login command

[Finishes #67149590]

mcintyred/cli,carnell69/cli,simonleung8/cli,xingzhou/cli,18F/cli,AmitRoushan/cli,TomG713/cli,zhang-hua/cli,kavoj/cli,EngineerBetter/cli,ofer43211/cli,rastasheep/trash-can,kavoj/cli,carnell69/cli,evanfarrar/cli,mcowger/cli,ofer43211/cli,HuaweiTech/cli,Zouuup/cli,diatmpravin/cli,TomG713/cli,ReachingOut/cli,simonleung8/cli,kavoj/cli,hyenaspots/cli,18F/cli,SrinivasChilveri/cli,fujitsu-cf/cli,kavoj/cli,nttlabs/cli,cgvarela/cli,mcintyred/cli,cf-routing/cli,AmitRoushan/cli,zhang-hua/cli,saravana76/cli,markstgodard/cli,mcintyred/cli,Zouuup/cli,Zouuup/cli,saravana76/cli,saravana76/cli,rastasheep/trash-can,EngineerBetter/cli,diatmpravin/cli,xingzhou/cli,srikanth88infy/cli,cf-routing/cli,zhang-hua/cli,cgvarela/cli,SrinivasChilveri/cli,markstgodard/cli,TomG713/cli,HuaweiTech/cli,markstgodard/cli,pishro-cc/cli,srikanth88infy/cli,SrinivasChilveri/cli,cf-routing/cli,pishro-cc/cli,cf-routing/cli,AmitRoushan/cli,xingzhou/cli,pishro-cc/cli,zhang-hua/cli,ofer43211/cli,evanfarrar/cli,pishro-cc/cli,18F/cli,18F/cli,saurabhguptasg/cli,nttlabs/cli,hyenaspots/cli,mcowger/cli,ReachingOut/cli,EngineerBetter/cli,diatmpravin/cli,srikanth88infy/cli,srikanth88infy/cli,saurabhguptasg/cli,nttlabs/cli,saurabhguptasg/cli,TomG713/cli,rastasheep/trash-can,xingzhou/cli,ReachingOut/cli,EngineerBetter/cli,saravana76/cli,cgvarela/cli,simonleung8/cli,Zouuup/cli,mcowger/cli,SrinivasChilveri/cli,fujitsu-cf/cli,evanfarrar/cli,carnell69/cli,HuaweiTech/cli,ofer43211/cli,AmitRoushan/cli,nttlabs/cli,mcintyred/cli,ReachingOut/cli,mcowger/cli,saurabhguptasg/cli,cgvarela/cli,HuaweiTech/cli,rastasheep/trash-can,evanfarrar/cli,hyenaspots/cli,fujitsu-cf/cli,diatmpravin/cli,carnell69/cli,hyenaspots/cli,markstgodard/cli