Implemented infracture for logOut