Assign the need ID before validation

This was being called after the Mongoid callback to
set the record ID, so the record ID would be a
BSON id and not the need ID.