Working Logout with invalidating session and removing user.