add datear form validation and no shallow copy to config