Added additional fields to the register dialog.
Renamed a badly named variable.