Removes unused block and var.

There's duplicate block that does the same thing, but assigning to different variable.
On the end only the last variable is used, which is `$username`.