Fixed the log out issue.