Fix login decorator in manage.py

Fixed issue #187