Fixed problem with login dialog.