started with configuration from array ,added domain validator for configuration