dismiss dialog after login