Update isAuthenticated.js