Working on login view as per https://docs.djangoproject.com/en/1.6/topics/auth/default/#django.contrib.auth.views.login