repo/model: Fix validation of urls