validate_inputs function

Validate that all user-defined inputs (GET query, POST body, etc.) are valid