Add login command.
Minor improvements.