Refactor change password panel.