Login for different db models. style