fixed index, added for loop to display users