Manage the case when user go directly to "/login" and has to be redirected to "/" after sign-in