created InvalidInputException class to handle invalid inputs
Implemented InvalidInputException for InputField when encountering an empty command