Middleware not a good direction, fixed issue with errors