Login fixed, and fixed identation error in views.py