Added csrf protection for put, patch & delete

Minor tweaks