added error catching for user input