Fixed and tested saving of userinfo.