A married person may loan the other spouse money from the separate estate of the married person and take in security therefor a judgment or mortgage against the property of the other spouse which shall be valid as otherwise provided by law.