fixed login functionality for CLI commands
removed unrequired call
Merge pull request #2101 from Guite/1.4

fixed login functionality for CLI commands