Core components for login and database