Add login dialog to tablet. Fix login/session behaviour