Encode sm login credentials and move to settings.py

Encode sm login credentials and move to settings.py