added unique index to email