Add validation for user inputs

Without this commit, there is no validation for inputs.

This commit adds input validation using the 'trlinkin/validate_multi'
module. Each input is validated to be either a `string` or an `array`.