Add delegate method for invalid input