I had this problem and switching it of then back on didn't work.
So I held down the centre button and the Screen button (Right hand side if you look at the phone) together until the phone re-booted.
Once it came back on I put in the security Pin and the bar was restored.