Validate $_POST data in save hook