I believe the Hatch Act applies only to employees of the executive branch. The President and Vice-President, and “certain other” employees in the executive branch are exempt, and I don’t believe the law applies to congresscritters.
...........true as per the original......it has been amended several times.....