fix register in client-side

- fix check uniquer email & username