Did some code clean up in userSession.js