Checked error message displayal in the case of no internet connection. FIxed a minor issue with the Toast messages.