Verify if profile is on sync before saving changes

This PR adds a safety measure against errors that may exist when a given profile is opened from multiple devices. Before storing the profile it checks to make sure the user has the last valid version.