Bad input error messages implemented and tested