fix bug for login.py