Added basic validation for incoming POST data within the trunk sample.