Implements email based login with Django 1.5.