added post method on redirect