title: Confirm old password before changing to new password codeigniter
body: <p>I have a dashboard with users details which they can edit. I would like to add a password change but before they can change their password how would I validate their current password before letting them change to a new password?</p>
  
  <p>So the form would have 3 fields. First field will have their <code>current_password</code>, follow by <code>new_password</code> and <code>confirm_password</code>.</p>