What I meant was 'else' case is not the problem as it's written on the fly and I can correct it.

I wanted to resolve the issue in the if success case first.