AVR Programming problem
Figured it out. The MISO Pin was shorted to ground. I heated the MISO pin on the 5x2 header with a soldering iron and maybe it loosened some solder and the connection broke from GND. It works fine now. I can write code to blink the LED and its working fine.

Thank you all for your help :)