added exception for storing posts