modifed login.py, more parameters to add_password