Put all of the input validation inline.