Expanded validators

Added multiple assignment validator and created an overarching validator
function for easier validation of ASTs