It would be advisable to get any arrangement written up into a formal declaration of trust. However, if you and your wife divorce and you have children and the court makes an award it can do so without regard to the declaration of trust.
Do you need any further help? I'm happy to assist further.
Please can I also ask you to take a moment to accept my answer otherwise I will not receive credit for helping you. Thanks.