stored logged in user on first query to prevent dupicate queries