I tried updating it via itunes, then perform restore factory default and it worked.
Connect your phone using the charging cable to your laptop
open the itunes app in your laptop (example is the apple music player)
press the volume up (don't long press)
press the volume down (don't long press)
Long press the power button until you see the apple logo
keep on pressing the power button until you see the charging cable on the screen
then a pop up window will appear asking you to select update the software or proceed to restore factory default option
I tried to perform the software update first, and perform backup recovery - (mine recovery failed) so I proceed with restore factory default.
then it worked.
Hope this helps!