Added log-in-out with patient authentication