Updtae socialnet.js to include check to confirm if user is logged in.