fixed the loggout redirect