JavaScript function has verified that all the required fields have been filled, cookie is added to user's computer. If same user tries to fill out form second time, the user will be directed to separate HTML page advising them that they have already submitted form.