Checks for invalid URLs