update code for account edit