Arduino L298N connection problem explained withpic

yea it was overheated yesterday
i just bought a new one today
and bought a 0.47ohm 5 watt resistor
as i am a beginner do you think i better take a photo and share it here so you can tell me ok it's work or not
im afraid to burn this new one
thanks for all your helps

by the way is it ok if i connect both 9. ping and 4. pin which is supply voltage to arduino's 5v out