removed insecure and allowed certain writes to posts