reworked username code
fixed uninitialized memory bug