generic class for modifying password.
input: current password, new password, and confirmation of new password.