hi
This problem will be faced by all beginners, using a zip tag is a good idea
, i would suggest you to use a insulation tape to fasten the wire along with the body of the motor after soldering, make sure that you leave the terminals open so that it will be easy for checking voltage and other stuff at the terminals