expose validate function on an element as publicly accessible, both because it might be something that someone wants to use, and because I want to mock it.