We should be using email.toLower() here, (and toLower() on insertion) for case insensitivity.