Overnight accident injures two people