URL validation method