type validation change