Cleaned up the LoginDlg