get user profile or log error info