input fields and values get zeroed when new row is added. Made slight change to number error check
added a row number but doesn't update properly yet