LED lights & associated resister?

I converted some led lights that ran on 3 AAA batteries (4.5 V) to run on 12VDC by replacing the batteries with a 5 Volt regulator 7805.
 
Top