I am using passport/express/express flash/fetchAPI to log users in. In passport.authenticate(), I return a flash message to inform the client side of the error: