fix bug, prevent duplicate username