Wrote editUser function