Add login, logout and whoami commands.