correcting an issue with the removeUser function