added domain validation