Add functions to handle invalid input