working with dao (RegisterDAO)