Moved URL validation into selector.