Added redirect behavior for routing, so the user will get navigated to the last route before login.