Fixed validation problem when seeding data