Add logout functions.