Change Middleware to use a custom user model