Added error message when error in connecting to server during login.