added error testing on client and simple error message if url is not input or incorrect