fix project code being dropped on second edit. added tests to check Authz related constraints.