fix logout not working when signed-in using NSUserDefaults