ABS Jeep Liberty Issue

Hello, I recently purchased a 2006 Jeep Liberty and i was wondering if someone could help me out here. I purchased a brand new hub and wheel bearing for the front passenger side wheel but when i installed it, the ABS light came on. I unhooked the wire connection from the new hub and plugged in the old one to see if it was a faulty hub, but the ABS light remained on. The ABS light was not on when i drove it home for 40 minutes when i first bought it. Does anyone have any advice?

Thank you,
Davis