Fix crash when login results in error.
Merge pull request #15 from learning-layers/hotfix/login-error-crash

This fixes the original problem, but this is still not handled neatly. Merging this for now. I will open a new issue for improving usability of logins once the video browsers nativity improvements are done.