fixed login_required