dont set global js variables if the user isnt logged in