Make sure mgd2 follows the same logic for Legacy passwords as mgd1