add validation on type's pages