So, i used flashtool and flashed ST15i_4.0.2.A.0.62 which was successful. Then, for rooting I used DoomLord root toolkit. AFter this was successful, i proceeded with flashing the stock kernel of ST15i. the process wasn't successful as the phone continuously restarted. Now, the phone isn't detected by the pc and can't even be charged.