at first u need to do factory reset....for this goto settings-phone-phone management-factorysettings-delete & restore data...
It may promot u for password...by default its 12345
DO BACK UP BEFORE TRYING IT
if that does'nt work u have to flash with ofw or cfw(i refer u delight for better performance)