Added some security checks for posts. Added TODOs for those that are not yet implemented.