fix register login type