finish user edit functionality