Make email a unique field on user

fixes #667 on github.