fix bug with validation inheritance
provide class_attribute and use it to fix issue with validation inheritance