fixed bug after saving changes to record; user_id is now written to
records on add/edit