Fixes DatabaseControllerTest and adds LoginTest