fixing typo in web.js for user logged in check