register using dao