Finished user edit and update function