Not sure how the login requirement fits in but the usual approach is to implement the singleton pattern:
en.wikipedia.org/.../Singleton_pattern
Essentially, a class with a static method that maintains a single instance of an object. The class has a private constructor so all those that require the object must do so through the get_Instance method.