Read mode from the view model.
Added account creation.