Several fixes to get client daemon to actually use a username and password to login