Fix element validation class