bugfixes + improvements

- Registration bugfix
- Generated username improvement