Parse and validate urls.