President Rutherford Hayes was sworn in a day early