getValidator by style