adding login in demo.py