Added error box when invalid input is found