Added missing login_required decorator.