added secure method for tracking users in node