The point of the confirm password box is to ensure the user has chosen the correct password in the first box by re-typing it again here. It's easy to accidentally mistype a password. If this happens and the confirmation box was removed, the user would not be able to log into their account.