Add update password func.