When deploying the login dialog spends some time to load, while waiting this dialog any acction would cause error. Add a screen to show that the aplications is loading till the login dialog appears.