No mention of flying the aircraft! If he cant legally fly it, he can't legally be in command!
To log PIC you must be qualified; and the aircraft must also be qualified, which under EASA requires airworthiness and Insurance. It could be stolen but that doesn't matter
Whopity
OK if both pilot and aircraft have to be legal to log the hours what happens if the aircraft becomes illegal in flight?
Does the Pilot in command only log up to the point that the aircraft became illegal ?
Pace