Added auto logout.