tuned timing of alert dialog
fixed a bug of failure for login