Derby's management of users and access is somewhat awkward.
There are two ways to fix this.
One is to ensure that "login" has been added as a user, by setting a couple of database properties.
An easier way is to pick a user that already exists. There are several of these, including "APP" (the Derby default) and "dbadmin". Password is the same as username for both of these.