all functions requiring login