do I need the following code for the form to work.