refactored change password component to use new form component and made minor api changes to support newPassword and oldPassword