added pasword confirmation handler