use timer to close login dlg