Compound validator and base controller