fix bug: duplicated userid? or incorrect username format