added login/logout functions