Disable online flag in register screen if user did not enable
internet in the dialog. Removed unused function.