Added authorization to users for posts