pass correct reference of request to serializeUser