Fix form on team page. Fixes #1257