Who was the United States President when Mississippi became a state?

James Monroe.