When I was building motorized bikes, the local Costa Mesa, CA cops would check my vin to make sure I wasn't just switching plates. (And the vin I used was the bicycle serial numbers on the frame.)
So, yeah, cops do check sometimes.
But people build custom motorcycles all the time with engine swaps, so there's probably some stupid form to fill out to be legit.