Fixed login issue

Fixes the login error with Dropbox. Credit to @lideshi