add check username

check username
fix selection always set 0
fix 0 markup save pouchdb