Test login (using an in-memory Map instead of a database) works