reworked validate_url controller