Fix logout bug

signed-off-by: Ana Carolina Lopes <ana_karolopes@hotmail.com>
signed-off-by: Iago Rodrigues Gonçalves <iago006@hotmail.com>