Minor fix where devmode can stay always logged in.