Why are you saving path even when user is authenticated?