Added logout feature.