[preferences-user-rulesets] Improve host validation (work on #4)