added additional input error handling