Fixed the logout yet being registered issue.