Fix issue #11: Allow null e-mail addresses
Issue #11: Just use primary ID to authenticate the user since this is the
minimum requirement.
Revert unnecessary change
Merge pull request #12 from stanhu/master

Fix issue #11: Allow null e-mail addresses