add update account function