refactor verifyPostRedirectGet method to allow passing continuation in last