Added filters to user inputs on start and end of for loop to require numeric input