Fix login decorator in manage.py