extracting validation from match class