It would probably be just fine. But I wouldn't recommend it.
First by transferring the IP to both people, you are probably giving two people complete control rights. Which is really only a problem if you don't like what the other person is doing. You have no power to stop them. If they are part owners of a company that owns the IP, depending on the bylaws, they can't act without your consent.
Second, the contract is only properly worded for 1 entity. For example if you had "Company will pay IP-Owner $1000 for the IP" that is clear enough, but if you change it to "Jack and John will pay IP-Owner $1000 for the IP" suddenly you have some contract interpretation problems. Are Jack and John each paying $1000? Are they splitting the bill? How should it be split? So if you did change it to two people there would probably be several instances where this kind of thing would be a problem.
You could transfer the IP to you right now and then when you form a company transfer the IP to the company. If you do it when the company is formed it would not be considered a sale or exchange so it is a tax free event.
Or if you want you could just rewrite the contract to make sure it makes sense with two people. This is actually a really bad option because if anything goes south, you'll whole project wont just go down hill, it will straight up be pushed off a cliff.
But there is no law saying you can't sign a bad contract. You are free to sign anything you want.