Validating inputs is a good idea.