edit migration
validate hash before saving