added ui.Dialog; added logout; corrected wrong password issue