Added meaningful messages to InvalidInputException