Added logout out functionality.