Yes that i forgot to include in my diagram.
Both the arduino power input and the power to the motor come from external 5V supply that can very well handle alot more current. the arduino and the motor supply are in parallel. The motor has a decoupling capacitor to suppress noise.
I am updating the schematic now.
Thanks