Fix bug in IoC,add confirm email view.