clone of https://bitbucket.org/chuck211991/django-registration