Login with the database. Integrated to the loginService on angular