Fixed auto logout feature.