add handling of username/password

the login code was already written, and now we can use it!