change LoginService signature to have a credential map instead of a simple login/pwd
add some unit testing