added in the logout functionality