Could you clarify this a bit? If login failed, line 152 would be false and line 169 should not get executed.