Add get validator function. Needs to handle incomplete types