Hey it was still not working after the changes, however i found that the issue was with atmel studio. It was not setting the breakpoint at SPi interrupt. Once i fixed it it worked!
How to fix the breakpoint issue:
However only problem i found is that the SPDR is always giving the wrong value.