added auto-setting of user id on creation of new record