Catching the "while login showing NETWORK_ERR: XMLHttpRequest Exception 101" error on console if network failure is there and to alert the user .
Fixed and send the pull request .