Fixed error in login dialog.