API for changing password.