fix bugs in EmailSender and add ConfirmUser.java