express middleware to logout from passport