clean up principal type validation