added URL validation