Adds changes to deserialize function of passport.js