fix error token missing
setup redirect