validate domain name not blank on self-hosted
code tidy