add method to get the right validator