Fixed bug causing newer android versions to crash on authentication
polished up error messages and removed debug logging