update dao and login