Invalid input handling finished