improvements to user detail changing script