added error message when post was not created. Also changed redirect after incorrect creation from home page to user profile page.