Got authentication working much better, now.