added some url validation, attempted to add some error handling