Add unique constraint on user email

Fix #738