Implementation of Logout functionality almost complete