ensure redirect is handled properly on failed postback