It does not matter what seat you occupy (as long as you can reach controls!). Nor does the type of instrumentation matter (G1000 vs anything else). If the CFI was current, and agrees that he was giving you instruction, and signs the logbook accordingly, then yeah, it's valid.
Probably the best...