Unique index for emails

- Added unique index for emails in the database.