add private utility functions
Run doctests in forms.py
Use private utility functions