Added error handling for incorrect credentials & not accessible URL