Cleaner input validation.