Modified login view to use CBVs as suggested by azizbookwala.