Input validation handling