Connection with database, login test.