LoginActivity: added dialog and manage logout button