added ability to add posts from frontend