Added config validation