Update login.py

added getNames