Added Logout functionaliry