Fixing unable to log out issue