Singleton pattern for login control and account control