entered data is displayed on page but not if there are multiple entries