fix accounts utils and forms; beefed up test_scaffold