How to work with a form data model