fix form validator. Fixes #237