Retirement tax questions

You left Vanguard out of the loop which is the incorrect procedure.

Vanguard is supposed to calculate and report any earnings on that contribution 
and return the contribution plus earnings to you.

 

@A96651