update users edit function