perhaps it would have been prudent to keep the Captain in the loop by telling and confirming with him what your entering into the FMS. Also rather than going into explanations as soon as he was not in agreement (a warning sign), tell him directly to ask ATC to confirm the clearance.
Bingo! Sound procedure.