Fix url validator method
Add comments