added bad input alert