The wife has full legal capacity to contract as if she were sole, except as otherwise provided by law.