Tool for validating the input of functions.