add post register config and redirect