login.py cleaned