beforePOST Trigger functionality added