Correcting syntax error in URL validation