field migrations and permissions fixes

* fixed migrations for fields.
* fixed bug with permissions for std users on save
* added test for correct permissions for assign_field