fixed LoginDialog