Added loggedByLogin() method to db connector