refactor(register): added ignore else