I have a redirect code inside an if else of a component, in which I needed to validate first the user before the app decides where to go next. In this scenario, the user has ent