add new code for solving issue of validation and accordion conflict