Refactor controllers/login.py to models/users.py