Simplify login

Get linked email address via AccountManager.
Fix local errors
Merge pull request #1 from JieeHD/dev

Dev