Complete the function of change_password