Fix input validation so it does not incorrectly state that a valid config ending in a ; is invalid.