added email string validation and duplicate email checking