how many years did woodrow wilson serve as president?