Creating a form with preferences