bugfix in modifyUser function