Hiya John
No, I do not think you will have a problem at all in that regard.
The tax office uses the title ownership as the basis for who can claim the expenses regardless of who is on the loan documentation.
As for the legal issues . . . probably best to seek advice from a solicitor...