Fix unique mail address

Dropped username, use mail only.
Use unique index on mail, delete the code for check unique, let it
save/update fail instead.