Updated the redirect path if user is not found
Because the redirect path was `/` when I logged out and then went to something like `localhost:3000/` , this cause an infinite redirect loop and caused the app to break.
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>