fixed a problem with inserting a new record where it was expecting user_id, even if the model wasn't User. It now creates via the association, which is always 'logins', so we use logins.create & etc
Merge branch 'fix_broken_insert'