fix for nullpointer when loggin out, crouton for loggin out