Update name.py

Fixed a bug where login was unsuccessful due to an error in code.