That's exactly the problem- you can't create a state law that trumps federal law. The law itself is illegal, it's existence violates gender discrimination laws already.