Which laws been enacted to prevent family members of a president from serving in his cabinet?

Could Congress prevent a President elect from becoming a President if he/she violated State law, or does this only apply to Federal law?

Please tell me if those questions are the same.
Pick your answer from:
- no;
- yes;
no