doing a better job of validating urls