James Madison, James Monroe