connected to db and started login