Checks if the connection to the server is successful or not