clean entity after validation