Added user authorization for posts