Added update function to controller and model. Moved salt-generation to its own function in designshare_model.