Improved url validator