Fix duplicate email check case-insensitive

Avoids inserting duplicate e-mail with Integrity constraint violation: 1062 Duplicate entry
Merge pull request #158 from brenbl/duplicate-email-case-insensitive

Fix duplicate email check case-insensitive