added duplicate email check