Changing the arguments for init_domain
Adding a validate subdomain function