Created services.py and using login_required decorator