Fixed bug for relogin. Everything working now.