fix require_login use case