Corrected the ping handler to accept a logged in user or machine.