creating functions to cache user teams and to start to create the team checking functions