How does the URL validation in the textbox work?