[RR-20] Added logout functions.