Redirect to main page while adding a post