Minor fix on URL validation