Only validate parameters if validation is required.