add postLogoutState and relogin logic after logout