Better handling exceptions.
Case-insensitive gmail.com domain check.
Fixes #3