[TECHNICAL-SUPPORT] LPS-47950 No redirect when user successfully login after failed login

Hi Julio,

We saw LPS-39744 where our first commit was reverted. Therefore, our second commit fixes that as well.
This fix worked well for me in both cases.

Thanks