Remember original path until authentication is successful