Input validation and error indication.