Implemented validated unique subdomain in Subdomains model and fix other slim bugs.