issue175 inputvalidation

Updated pull-request to implement validation in the input as #175 
The default value of `validation` is `None`, so this needs a :guardsman: