add relogin feature