Fix migration issues

- ensures that shifts and goals exist before validation