Fixed bug with url validation