Added valid tag to encoding element