save path before authentication