added restriction of the minimum size of a form