Fixed URL validation bug