Update pysugar.py

fixing login issue when error_element could be None