Added authentication to posts, finally got post to work properly