views.py make logout function work