Added the lodash library.
Readded the userHash parameter to the json web token information.
Added function the get the user from an id.
Checked if referenced already exists for the current user.