moved ean_validation in a mixin