Another fix related to #88, also accounts for users with invalid location_ids
Fixed relationship between users/locations because fuck you ORM