update edit user function