improve the login dialog.

improve the login dialog.