Added new tests to LoginCommand and some comments.