LPS-39744 Fix redirect when login correctly/incorrectly