added test cases for db and login