got authentication working