Is it a good idea to put the logo of the university in my motivational letter?
No, you should not put the university logo in the letter. You are not representing your university in an official capacity in a statement of purpose, and therefore using the university's logo would be inappropriate, as you would be suggesting an official imprimatur for your work.