Update views.py

Add login function in views