Patch email check for session compatibility