Added post resource and solved security issue