fix path that the redirect after logged in