added proper error for malformed domain (with super simple validation)