Update pysugar.py

fixing login issue when error_element could be None. I was never able to login with this library, so i finally debugged it. Your welcome. SugarService.login() returns the session ID now.