Add validation functions

Add validation functions from puppetlabs/stdlib to make sure we
actually receive the parameters we expect