fix popup email check