More input validation.