Added URL validation check