got the login to work via api.