Redirect on successful post update
Added error if update fails
redirect on successful post creation