activation_email bug fixed

settings.py refactored.
views.py refactored.