Remove unnecessary block in url validator