CLI/TUI - logged user that switching between CLI and TUI should stay logged.

Based on #323 (comment 187791)

Steps:

  1. Execute script to run clive cli.
  2. Choose profile and enter password.
  3. Enter clive

Now, the screen to log in is shown. I think I should be already logged in because I chose the profile and entered the password.