Add validator to parameter collector and use it when adding Git remotes