Fixed login_required filter