Fix a bug which webView delegate is not connected in iPad.
Show login dialog only when app launched.