It would be better if you transfer it in the name of your friend. If the car involves in an accident or some other sort of illegal activity at a later stage, you & your friend would be in trouble.