added login dialog.