Update checkAuth.js